import perm from './perm'
import Vue from 'vue'
// 全局注册自定义指令
const install = function(Vue) {
  Vue.directive('perm', perm)
}

if (window.Vue) {
  window['perm'] = perm
  Vue.use(install)
}

export default install
